<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>初见VUE</title>
  <script src="../js/vue.js"></script>
  <style>
    .active {
      font-size: 30px;
      color: teal;
    }
    .active2 {
      background-color: tomato;
      color: white;
    }
  </style>
</head>
<body>
  <div id="app">
    <!-- <div :class="{ active: isActive}">hello vue</div> -->
    <!-- <div :class="[{active:true}, {active2:true}]">hello vue</div> -->
    <div :class="['active', 'active2']">hello vue</div>
    <!-- <div :class="[isActive?{active:true}:'', {active2:true}]">hello vue</div> -->
  </div>
  <script>
    let vm = new Vue({
      el: '#app',
      data: {
        isActive: false,
      },
      methods: {
        
      }
    })
  </script>
</body>
</html>